/*
package com.lijiajia.cloud.resource.autoconfigure.feign;

import org.springframework.cloud.security.oauth2.client.feign.OAuth2FeignRequestInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.oauth2.client.OAuth2ClientContext;
import org.springframework.security.oauth2.client.resource.OAuth2ProtectedResourceDetails;
import org.springframework.security.oauth2.config.annotation.web.configuration.EnableResourceServer;

@Configuration
@EnableResourceServer
public class OAuth2FeignConfiguration {

	@Bean
	public OAuth2FeignRequestInterceptor oAuth2FeignRequestInterceptor(OAuth2ClientContext oAuth2ClientContext,
																	   OAuth2ProtectedResourceDetails resourceDetails) {
		return new OAuth2FeignRequestInterceptor(oAuth2ClientContext, resourceDetails);
	}
}
*/
